import turtle
import math

t = turtle.Turtle()
#x=turtle.Pen()


def setpen(x, y):
    t.penup()
    t.goto(x, y)
    t.pendown()
    t.setheading(0)
    t.pensize(2)
    t.speed(10)


def circle(r, color):
    start_x = 0
    start_y = -r
    setpen(start_x, start_y)
    t.pencolor(color)
    t.fillcolor(color)
    t.begin_fill()
    t.circle(r)
    t.end_fill()


def five_star(r, color):
    setpen(0, 0)
    t.pencolor(color)
    t.setheading(162)
    t.forward(r)
    t.setheading(0)
    t.fillcolor(color)
    t.begin_fill()
    for i in range(5):
        t.forward(math.cos(math.radians(18)) * 2 * r)  # 2cos18°*r
        t.right(144)
    t.end_fill()
    t.hideturtle()


if __name__ == '__main__':
    circle(288, 'crimson')
    circle(234, 'snow')
    circle(174, 'crimson')
    circle(114, 'blue')
    five_star(114, 'snow')
   # input()
    turtle.done()

    squares = []
    for sq in range(1,10):
        sq1 = sq**2
        squares.append(sq1)
        print(squares)